<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String chartStr = (String)request.getAttribute("chart");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>统计单个孩子的评测结果</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path %>/reference/css/Beike.css" rel="stylesheet" type="text/css">
	
	<script language="JavaScript" src="<%=path %>/flashchart/js/FusionCharts/FusionCharts.js" charset="utf-8"></script>
	
  </head>
  
  <body>
  <form action="<%=path %>/beike/static.do?method=staticSingeStudent" method="post" name="frm">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#A4C9EC">
    <tr>
      <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td align="left" valign="middle" width="100" bgcolor="#FFFFFF">学员姓名：</td>
            <td align="left" width="150" valign="middle" bgcolor="#FFFFFF">
				<select name="studentId" style="width: 80px;">
					<c:forEach items="${students}" var="st">
				  		<option value="${st.studentId }" ${studentId==st.studentId?'selected':'' }>${st.sname }</option>
				 	</c:forEach>
				</select>
			</td>
            <td align="left" valign="middle" bgcolor="#FFFFFF"><input type="submit" value="统计" /></td>
		  </tr>
    </table></td>
    </tr>
    <tr>
    	<td colspan="3"  width="100%"><div id="charts"><strong></strong></div></td>
    </tr>
  </table>
  </form>
  </body>
  <script type="text/javascript">
			var myChart = new FusionCharts("<%=path %>/flashchart/swfs/Column3D.swf", "myChartId", "100%", "400", "0", "0");
			myChart.setDataXML("<%=chartStr %>");
			myChart.render("charts");

	</script>
</html>
